<!DOCTYPE html>
<html>
<head>
    <#assign secSelect = JspTaglibs["http://www.casic304.cn/secSelect"] />
    <meta charset="utf-8">
    <title>软件问题分析</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <link rel="stylesheet" href="${ctx}/layui/css/layui.css" media="all"/>
    <link rel="stylesheet" href="${ctx}/qbdmsStatic/iconfont/iconfont.css"/>
    <link rel="stylesheet" href="${ctx}/qbdmsStatic/style/qbdms.css">
    <script type="text/javascript">
        var __ctx = "${ctx}";
    </script>
    <style>
        .littleTitle{
            margin-left: 16px;
            font-size: 16px;
            color: rgba(96,98,102,1);
            line-height: 48px;
            font-family: Microsoft YaHei;
            font-weight: bold;
        }
    </style>
    <#if isClose == 'true'>
        <style>
            .listBody .qbdms-bodyDiv{padding: 0 }
            body.qbdms-particulars .qbdms-bodyDiv div.layui-table-view-body{padding: 16px}
            .btnformItem{background: none}
        </style>
    </#if>
</head>
<body class="listBody qbdms-particulars">
<div class="qbdms-bodyDiv">
    <div class="layui-table-view-body qbdms-add-view-body" >
        <#if isClose != 'true'><div class="qbdms-formTitle" >软件问题分析 <i class="qbdms-returnOn closeWindow">返回</i></div></#if>
        <form class="formPreview layui-form" requrl="${ctx}/qbdms/wQbdSoftwareproAnls/get" lay-filter="wQbdSoftwareproAnlsDataForm">

            <div class="" style="width: 100%;overflow-x: auto">
                <table class="tableExcel qbdms-zeroTable" width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tbody>
                    <tr id="tbxx">
                    </tr>

                    <tr>
                        <td class="qbdms-zeroTable-lable">密级<span style="color: red;">*</span></td>
                        <td name=''>
                            <@secSelect.sec_select required=true data_src=1 name="secret"/>
                        </td>
                        <td class="qbdms-zeroTable-lable">软件名称<span style="color: red;">*</span></td>
                        <td name='softwarename'></td>
                        <td class="qbdms-zeroTable-lable">统计期<span style="color: red;">*</span></td>
                        <td name='statmonth'></td>
                        <input type="hidden" name="statmonth"  placeholder="请输入"  lay-verify="required" lay-reqtext="统计期是必填项"
                               id="month" autocomplete="off" class="layui-input  textInput"
                               maxlength="50" fieldname="statmonth">
                    </tr>
                    <tr>
                        <td class="qbdms-zeroTable-lable">问题总数<span style="color: red;">*</span></td>
                        <td name='problemcount'></td>
                        <td class="qbdms-zeroTable-lable">报送单位<span style="color: red;">*</span></td>
                        <td colspan="3" name='filldept'></td>
                    </tr>
                    <tr>
                        <td colspan="6">
                            <span class="littleTitle">软件问题</span>
                        </td>
                    </tr>
                    <tr>
                        <td class="qbdms-zeroTable-lable">文档问题</td>
                        <td name='docproblem'></td>
                        <td class="qbdms-zeroTable-lable">代码问题</td>
                        <td name='codeproblem'></td>
                        <td class="qbdms-zeroTable-lable">修改程序</td>
                        <td name='modifyprogram'></td>
                    </tr>
                    <tr>
                        <td class="qbdms-zeroTable-lable">其他</td>
                        <td colspan="5" name='othersoftwarepro'></td>
                    </tr>

                    <tr>
                        <td colspan="6">
                            <span class="littleTitle">代码问题关键等级</span>
                        </td>
                    </tr>
                    <tr>
                        <td class="qbdms-zeroTable-lable">关键</td>
                        <td name='codeproCrux'></td>
                        <td class="qbdms-zeroTable-lable">重要</td>
                        <td name='codeproImportant'></td>
                        <td class="qbdms-zeroTable-lable">一般</td>
                        <td name='codeproGeneral'></td>
                    </tr>
                    <tr>
                        <td class="qbdms-zeroTable-lable">建议</td>
                        <td colspan="5" name='codeproSuggestion'></td>
                    </tr>

                    <tr>
                        <td colspan="6">
                            <span class="littleTitle">代码问题分布</span>
                        </td>
                    </tr>
                    <tr>
                        <td class="qbdms-zeroTable-lable">编程准则违背</td>
                        <td name='codeproBreakrules'></td>
                        <td class="qbdms-zeroTable-lable">容错与防错</td>
                        <td name='codeproErrorproofing'></td>
                        <td class="qbdms-zeroTable-lable">接口</td>
                        <td name='codeproInterface'></td>
                    </tr>

                    <tr>
                        <td class="qbdms-zeroTable-lable">异步并发</td>
                        <td name='codeproAsynconcur'></td>
                        <td class="qbdms-zeroTable-lable">时序和时限</td>
                        <td name='codeproSequential'></td>
                        <td class="qbdms-zeroTable-lable">计算和算法</td>
                        <td name='codeproAlgorithm'></td>
                    </tr>
                    <tr>
                        <td class="qbdms-zeroTable-lable">初始化和复位</td>
                        <td name='codeproInit'></td>
                        <td class="qbdms-zeroTable-lable">内存管理</td>
                        <td name='codeproMemory'></td>
                        <td class="qbdms-zeroTable-lable">其他</td>
                        <td colspan="5" name='codeproOther'></td>
                    </tr>




                    </tbody>
                </table>

            </div>

            <#if isClose != 'true'>
                <div class="layui-form-item btnformItem">
                    <p>
                        <button type="reset" id="closeWindow"
                                class="closeWindow layui-btn layui-btn-sm btn-save qbdms-oneBtnLine">返回
                        </button>
                    </p>
                </div>
            </#if>
            <div class="layui-hide">
                <input type="text" name="id" placeholder="请输入"
                       autocomplete="off" class="layui-input " maxlength="50" fieldname="id">
            </div>
        </form>
    </div>
</div>


<script src="${ctx}/qbdmsStatic/public/configFile.js"></script>
<script src="${ctx}/layui/layui.js"></script>
<script>
    layui.config({
        base: serverPath.qbdmsPath + staticPath.qbdmsPath //静态资源所在路径
    }).extend({
        index: 'lib/index' //主入口模块
    }).use(['index','common','laydate','jquery','publicMethods','propsHandle'], function () {
        var laydate = layui.laydate;
        var $ = layui.jquery;
        var publicMethods = layui.publicMethods;
        var propsHandle = layui.propsHandle;
        var dateTimeFiledLen = $(".dateTimeFiled");
        for (var i = 0; i < dateTimeFiledLen.length; i++) {
            laydate.render({
                elem: dateTimeFiledLen[i] //指定元素
                , type: 'date'
                , trigger: 'click'
            });
        }
        var  defProps = {
                //viewMould: 'form/formDef/view/formDesign/moulds/', // 组件模块 存放文件 *****
                viewMould: 'moulds/', // 组件模块 存放文件 *****
                formAreaInfo: '.formPreview',
                formAreaInfo: 'html',
                temDate: '.temDate',
                uploadFileBtn: '.uploadFileBtn',
                uploadImgBtn: '.uploadImgBtn',
                richTextArea: '.richTextArea',
                selectInput: '.selectInput',
                radioOptionCont: '.radioOptionCont',
                dataLexiTree: '.dataLexiTree',
                selectorBtn: '.selectorBtn'
            },
            temQuery = new propsHandle();  // 实例化模板功能部分

        // 初始化模板功能
        temQuery.initTem({
            selectorBtn: defProps.selectorBtn,
            selectorTemPath: setter.views + defProps.viewMould
        });
        //关闭当前页面
        $("#closeWindow,.closeWindow").click(function () {
            if ("${isClose}" == "true") {
                parent.layer.close(parent.layer.getFrameIndex(window.name));
            }
            window.location.href = serverPath.qbdmsPath + '/qbdms/wQbdSoftwareproAnls/view/list';
        });

        //月度选择
        laydate.render({
            elem: '#month' //指定元素
            , type: 'month'
            , trigger: 'click'
            , value: publicMethods.timeData(new Date()).substring(0,7)
        });

        var runId = "${runId}";
        if (runId == null || runId == '') {
            $("#hideAndShow").show();
        }


        if ('${dept}' != '') {
            $("input[name='filldept']").val('${dept}');
        }

        var common = layui.common;
        var index = parent.layer.getFrameIndex(window.name);
        common.updateForm({
            name: 'wQbdSoftwareproAnlsDataForm',
            idValue: "${id}",
            primary: "id",
            getCallback: function (data) {
                // $("#tbxx").html("<span class='qbdms-TBinformation'>填报信息:</span><span class='qbdms-TBinformationText'>【" + data.data.filldept + " | " + data.data.fillman + " | " + data.data.filldate + "】</span>");
                $("#tbxx").html("<td class='qbdms-zeroTable-lable'>填报信息:</td><td colspan='5' class=''>【"+data.data.filldept+" | "
                    +data.data.fillman+"  | "+data.data.filldate+"】</td>");
            }
        });

        publicMethods.bottomFixd()
        $("body *").not("#closeWindow").attr("disabled", "disabled");

    });
</script>
</body>
</html>